const { data } = require('cheerio/lib/api/attributes')
const fs = require('fs')
let json
fs.readFile('json_product.json', (err, data) => {
  json = JSON.parse(data)
  //   console.log(json)

  for (let key in json) {
    // console.log(value.length)
    console.log(key + '\t的个数:\t' + json[key].length)
    switch (key) {
      case 'man':
        console.log(`01type_${key}`)
        break
      case 'woman':
        console.log(`02type_${key}`)
        break
      case 'kid':
        console.log(`03type_${key}`)
        break
      case 'accessories':
        console.log(`04type_${key}`)
        break
    }
  }
})
